package genericsDemo;

import java.util.ArrayList;

public class GenericsDemo3 {
    public static void main(String[] args) {

        ArrayList<String> list = new ArrayList<>();
        ListUtil.addAll(list,"aaa","bbbb","cccc","dddd");
        System.out.println(list);

        ArrayList<Integer> list2 = new ArrayList<>();
        ListUtil.addAll2(list2,1,2,3,4,5);
        System.out.println(list2);
    }
}
